<?php
/**
 *Create by PhpStorm
 *User:Kendy
 *Date:2019/10/8/009
 *Time:14:19
 */
namespace app\common\model;
use think\Model;
use think\Db;
class hotelRoomModel extends Model
{
    // 确定链接表名
    protected $name = 'hotel_room';

    /**根据搜索条件获取单条的酒店房间信息
     * @param $where 查询条件
     * @return mixed
     */
    public function  getRoomInfoById($where)
    {
        return $this->where($where)->find();
    }

   public function getRoomImg($where)
   {

     return Db::name('room_img')
     ->field('img_path')
     ->where($where)
     ->select();
   }
}